-- GENERATED SPELL FOR [Crimson Gallant] --


function spell0_10424(pUnit, Event) --@Crusader Strike,n/a--
pUnit:FullCastSpellOnTarget(14518,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10424', 30290, 1)
end

function spell1_10424(pUnit, Event) --@Holy Strike,n/a--
pUnit:FullCastSpellOnTarget(17143,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10424', 543, 1)
end

function spell2_10424(pUnit, Event) --@Retribution Aura,Self--
pUnit:FullCastSpellOnTarget(8990,pUnit)
pUnit:RegisterEvent('Sorts_10424', 644, 1)
end

function Sorts_10424(pUnit, Event)
local choix_sorts_10424 = math.random(0, 2)
if choix_sorts_10424 == 0 then
pUnit:RegisterEvent('spell0_10424', 1, 1)
end
if choix_sorts_10424 == 1 then
pUnit:RegisterEvent('spell1_10424', 1, 1)
end
if choix_sorts_10424 == 2 then
pUnit:RegisterEvent('spell2_10424', 1, 1)
end
end

function mob10424_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10424', math.random(1500, 3000), 1)
end

function mob10424_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10424_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10424_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10424, 1, 'mob10424_Action')
RegisterUnitEvent(10424, 2, 'mob10424_Leave')
RegisterUnitEvent(10424, 3, 'mob10424_Kill')
RegisterUnitEvent(10424, 4, 'mob10424_Die')
